            <?php
            $sql = 'SELECT * FROM ' . Tbladvertise::tbladvertise . '  WHERE  ' . Tbladvertise::status . ' = 1  AND  ' . Tbladvertise::page . ' = 0  AND ' . Tbladvertise::position . ' = "bottom" ORDER BY ' . Tbladvertise::date_modified . ' DESC LIMIT 3';
            $result = mysql_query($sql);
//var_dump($result);
            $i = 1;
            $border = "";
            if (mysql_num_rows($result) > 0) {
            ?>
            <div class="box laster custom">
				<div class="box-content">
					<div class="product-grid" style="padding-left: 15px; padding-right: 15px;"> 
            <?php
                while ($row = mysql_fetch_object($result)) {
                    ?>                              
                    <div class="image">
                        <a href="<?php echo $row->{Tbladvertise::link} ?>" target="_blank">
                            <img class="image_product_tap" src="<?php echo 'images/advertise/' . $row->{Tbladvertise::image} . '"'; ?>" width="100%"/>
                        </a>
                    </div>	<div class="clear"></div>	
                    <?php
                }?>
			                </div>
			    </div>
			</div>
                
            <?php
            }?>